#!/bin/sh 

if [ "$1" = "clean" ]; then
	#rm hd.img  log.bochsrc.disk
	find -type f -regex ".*\.o\|.*\.bin\|.*\.img\|.*log\.bochsrc\.disk\|.*\.img\.lock"  -delete
	exit 0
fi

if [ -e "hd.img" ]; then
	rm -rf hd.img  
fi

/usr/bin/bximage -hd=1 -mode="create" -q hd.img
